package com.lzh.others.basejava.Reflection;

import lombok.Getter;

public class Message {
    private String id;
    private String username;
    private String content;

    public Message() {
    }

    public Message(String id, String username, String content) {
        this.id = id;
        this.username = username;
        this.content = content;
    }

    public Message(String content) {
        this.content = content;
    }

    public String id() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String username() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String content() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
